string = "Ruby is a cool language"
puts string[5]
puts string[-12]
puts string[7..14]
puts string["cool lang"]
puts string[/c[ol ]+/]
puts string.count("^aey. ")
puts string.include?("Ruby")
puts string.include?("English")
puts string.start_with?("Ruby")
puts string.end_with?("!!!")
puts string.slice!("cool ")
puts string.count("a")
puts string.count("g-m")
puts string.count("A-Z")
puts string.count("aey. ")
puts string.count("^g-m")
puts string.count("ag-m")
puts string.count("ag-m","^1")
puts string.index("cool")
puts string.index("1")
puts string.rindex("1")
puts "a".ord
puts 97.chr
puts string
string = "David A. Black"
puts string.upcase
puts string.downcase
puts string.swapcase
puts string.capitalize
puts string.capitalize!
puts string
puts string.rjust(25)
puts string.ljust(25)
puts string.rjust(25,'.')
puts string.rjust(25,'><')
puts "The middle".center(20,"*")
string = "   David A.  Black   "
puts string.strip
puts string.lstrip
puts string.rstrip
puts "David A. Black".chop
puts "David A. Black".chomp
puts "David A. Black\n".chomp
puts "David A. Black".chomp('ck')
puts "100".to_i(17)
puts "100".oct
puts "100".hex
puts "1.2345".to_f
puts "Hello".to_s
puts "abcde".to_sym
puts "1.2345and some words".to_f
puts string.encoding
str = "Test string"
str.encode!("US-ASCII")
str << ".Euro symbol: \u20AC"
puts str
puts str.encoding
puts "a".to_sym
puts "Converting astring to symbol with intern....".intern
puts "abc".object_id
puts "abc".object_id
puts :abc.object_id
puts :abc.object_id